class Manifest {
  constructor(manifestFile) {
    let m = JSON.parse(Registry.getRaw(manifestFile));
    this.version = m.version;
    this.plugins = m.plugins;
    this.manifests = m.manifests;
  }

  loadPlugins() {
    let pluginList = [];
    if(this.plugins) {
      this.plugins.forEach(plugin => {
        plugin.js.forEach(jsFile => Registry.loadFile(jsFile));
        pluginList.push({
          "class_name": plugin.class_name,
          "matches": plugin.matches
        })
      });

    }
    return pluginList;
  }
}